package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.hutool.core.util.StrUtil;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.dao.AliBusinessDao;
import io.renren.dto.AliBusinessDTO;
import io.renren.entity.AliBusinessEntity;
import io.renren.service.AliBusinessService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 支付宝商户回调信息表
 *
 * @author jll
 * @since 1.0.0 2024-07-04
 */
@Service
public class AliBusinessServiceImpl extends CrudServiceImpl<AliBusinessDao, AliBusinessEntity, AliBusinessDTO> implements AliBusinessService {

    @Override
    public QueryWrapper<AliBusinessEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<AliBusinessEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}
